﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterCar.master" AutoEventWireup="true"
    CodeFile="car-insurance-promotion.aspx.cs" Async="true" Inherits="promotion_promotion" MaintainScrollPositionOnPostback="true"
    EnableEventValidation="true" ValidateRequest="false" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/controls/usrIdNumber.ascx" TagName="usrIdNumber" TagPrefix="uc9" %>
<%@ Register Src="~/controls/usrMobilePhone.ascx" TagName="usrPhoneNo" TagPrefix="uc10" %>
<%@ Register Src="~/controls/usrGender.ascx" TagName="usrGender" TagPrefix="uc3" %>
<%@ Register Src="~/controls/usrOccupation.ascx" TagName="usrOccupation" TagPrefix="uc5" %>
<%@ Register Src="~/controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc13" %>
<%@ Register Src="~/controls/usrNoJS.ascx" TagName="usrNoJS" TagPrefix="ucNoJS" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <asp:Literal runat="server" ID="litZopim" Visible="false"></asp:Literal>
    <link href="/css/popup_login.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="/css/pathbar.css" />
    <link rel="stylesheet" type="text/css" href="/css/results-a.css" />
    <link rel="stylesheet" type="text/css" href="/css/callme.css" />

    <script src="/controls/CE_Date.js" type="text/javascript"></script>

    <script src="/includes/jtip.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpBody" runat="Server">
    <!--content start-->
    <asp:UpdatePanel runat="server" ID="upnCallPop">
        <ContentTemplate>
            <div class="vrow2" style="margin: 50px auto; padding: 30px 5px;">
                <div>
                    <div style="float: left; width: 270px;">
                        <a id="aPromotion1" runat="server" name="Promotion1" onserverclick="btnCallforDiscount_Click">
                            <asp:Image ID="imgPromotion1" runat="server" ImageUrl="<%$ Resources:ImageResource,PromotionUrl1%>" AlternateText="promotion 1" /></a></div>
                    <div style="float: left; width: 270px;">
                        <a id="aPromotion2" runat="server" name="Promotion2" onserverclick="btnCallforDiscount_Click">
                            <asp:Image ID="imgPromotion2" runat="server" ImageUrl="<%$ Resources:ImageResource,PromotionUrl2%>" AlternateText="promotion 2" /></a></div>
                    <div style="float: left; width: 270px;">
                        <a id="aPromotion3" runat="server" name="Promotion3" onserverclick="btnCallforDiscount_Click">
                            <asp:Image ID="imgPromotion3" runat="server" ImageUrl="<%$ Resources:ImageResource,PromotionUrl3%>" AlternateText="promotion 3" /></a></div>
                    <div style="float: left; width: 270px;">
                        <a id="aPromotion4" runat="server" name="Promotion4" onserverclick="btnCallforDiscount_Click">
                            <asp:Image ID="imgPromotion4" runat="server" ImageUrl="<%$ Resources:ImageResource,PromotionUrl4%>" AlternateText="promotion 4" /></a></div>
                </div>
            </div>
            <div style="position:fixed; text-align:center; width:100%;">
                <asp:UpdateProgress AssociatedUpdatePanelID="upnCallPop" ID="updateProgress3" DynamicLayout="true"
                    DisplayAfter="2" runat="server">
                    <ProgressTemplate>
                        <div>
                            <img alt="Loading" src="/images/loader/loader_main.gif" />
                        </div>
                    </ProgressTemplate>
                </asp:UpdateProgress>
            </div>
            <asp:Label ID="lblMessage" runat="server" CssClass="errorSummary"></asp:Label>
            <asp:Button ID="Button1" runat="server" Text="Button" Style="display: none;" />
            <cc1:ModalPopupExtender ID="mpeCallPop" runat="server" TargetControlID="Button1"
                PopupControlID="PanelCallMepop" BehaviorID="behCallMepop" BackgroundCssClass="modalBackground"
                CancelControlID="aXCallPop" DropShadow="false">
                <%--btnSubmit--%>
            </cc1:ModalPopupExtender>
            <asp:Panel ID="PanelCallMepop" runat="server" Style="display: none; background-color: White; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;">
                <div id="container_callme" style="height: 550px;">
                    <div class="divXPop right">
                        <a id="aXCallPop" runat="server" onclick="HidePopupMsgCall();">X </a>
                    </div>
                    <div class="padding_30px">
                        <h1>
                            <%=GetGlobalResourceObject("CarInsurance", "PromotionCallMe")%></h1>
                       <%--<div class="seperator">
                        </div>--%>
                        <div style="width: 430px;">
                            <%=GetGlobalResourceObject("CarInsurance", "CallMeNow")%>
                        </div>
                        <div class="seperator_form">
                        </div>
                        <!--Form  |  Starts-->
                        <div style="width: 430px;">
                        </div>
                        <div id="divExisting" runat="server">
                            <div class="form_col_1 comp left">
                                <asp:Label ID="lblPromotionTitle" runat="server" Text="<%$ Resources:CarInsurance,PromotionSelected%>" /></div>
                            <div class="form-group has-error">
                                <asp:Label ID="lblPromotionName" runat="server" Text="" />
                            </div>
                            <div class="seperator_15px">
                            </div>
                        </div>
                        <div>
                            <div class="form_col_1 comp left">
                                <asp:Label ID="lblFullName" runat="server" Text="<%$ Resources:CarInsurance,FullName%>" /></div>
                            <div class="form-group has-error">
                                <asp:TextBox ID="txtCallMeFullNamePop" Width="230" MaxLength="50" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="rfvCallMeFullName" runat="server" CssClass="validationErrorControl"
                                    ValidationGroup="callme" ErrorMessage="" Text="" ControlToValidate="txtCallMeFullNamePop"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="revCallMeFullName" runat="server" ValidationGroup="callme"
                                    ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$" CssClass="validationErrorControl"
                                    ControlToValidate="txtCallMeFullNamePop" ErrorMessage=""></asp:RegularExpressionValidator>
                            </div>
                        </div>
                        <div>
                            <div class="seperator_10px">
                            </div>
                            <div>
                                <div class="form_col_1 comp left">
                                    <asp:Label ID="lblEmailPop" runat="server" Text="<%$ Resources:CarInsurance,EmailAddress%>" /></div>
                                <div class="form-group has-error">
                                    <asp:TextBox ID="txtEmailPop" runat="server" MaxLength="100" Width="230"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Text="" CssClass="validationErrorControl"
                                        ValidationGroup="callme" ErrorMessage="" ControlToValidate="txtEmailPop" Display="Dynamic"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" Text="" CssClass="validationErrorControl"
                                        runat="server" ValidationGroup="callme" ErrorMessage="" ControlToValidate="txtEmailPop"
                                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                                </div>
                            </div>
                            <div class="seperator_10px">
                            </div>
                            <div>
                                <div class="form_col_1 comp left">
                                    <asp:Label ID="lblMobileNoPop" runat="server" Text="<%$ Resources:CarInsurance,MobileNo%>" /></div>
                                <div class="form_col_2 left">
                                    <div class="form-group has-error">
                                        <uc10:usrPhoneNo ID="usrCallMePhoneNo" ValidationGroup="callme" IsEnabled="true"
                                            CssClass="form-group has-error" PhoneNoErrorMessage="Mobile Phone No must be number value."
                                            PhoneNoValidErrorMessage="Mobile phone no is not valid." IsRequired="true" PhoneNoRequireErrorMessage="Require Mobile Phone No."
                                            runat="server" />
                                    </div>
                                </div>
                            </div>
                            <%--<div class="seperator_form">
                            </div>--%>
                            <div>
                                <div class="form_col_1 comp left">
                                    <asp:Label ID="lblCoverCommencementDate" runat="server" Text="<%$ Resources:CarInsurance,CommencementDate%>" />
                                </div>
                                <div class="form_col_2 left">
                                    <asp:DropDownList ID="ddlCoverageComMonth" runat="server" CssClass="contactDropdown">
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvCoverComMonth"
                                        runat="server" InitialValue="-1" ControlToValidate="ddlCoverageComMonth" ErrorMessage=""
                                        ValidationGroup="callme" Display="Dynamic"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <div class="seperator_10px">
                            </div>
                            <div>
                                <div class="form_col_1 comp left">
                                    <%=GetGlobalResourceObject ("CarInsurance","CallMeAt") %></div>
                                <div class="form_col_2 left">
                                    <asp:DropDownList CssClass="contactDropdown" runat="server" ID="ddlCallMeTime">
                                        <asp:ListItem Value="-1" Text="<%$Resources:CarInsurance,Select %>" />
                                        <asp:ListItem Value="1" Text="<%$Resources:CarInsurance,CallMeMorning %>" />
                                        <asp:ListItem Value="2" Text="<%$Resources:CarInsurance,CallMeAfternoon %>" />
                                        <asp:ListItem Value="4" Text="<%$Resources:CarInsurance,CallMeAnytime %>" />
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="rfvCallMeTime" runat="server" CssClass="validationErrorControl"
                                        ValidationGroup="callme" ErrorMessage="" Text="" InitialValue="-1" ControlToValidate="ddlCallMeTime"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <%--<div class="seperator_form">
                                            </div>--%>
                            <div id="divCallMe" runat="server" visible="false">
                                <div class="form_col_1 left">
                                    &nbsp;
                                </div>
                                <div class="form_col_2 left">
                                    <asp:Label ID="lblCallMeMessage" runat="server" Font-Size="12px" ForeColor="Green"
                                        Font-Bold="true" Font-Names="Arial" Text="" />
                                </div>
                            </div>
                            <div>
                                <div class="form_col_1 left">
                                    &nbsp;
                                </div>
                                <div class="form_col_2 left">
                                    <br />
                                    <asp:Button ID="btnSubmit" Text="<%$ Resources:HomePage,Submit%>" CssClass="button_submit"
                                        OnClientClick="LoadValidationErrorCss();if (Page_ClientValidate('callme')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'button_processing';}"
                                        runat="server" ValidationGroup="callme" AlternateText="Next" ToolTip="Next" CausesValidation="true"
                                        OnClick="btnSubmit_Click" />
                                </div>
                            </div>
                            <!--Form  |  Ends-->
                            <div class="seperator">
                            </div>
                            <div style="width: 430px; font-size: 0.85em;">
                            </div>
                        </div>
                    </div>
                </div>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>

    <script type="text/javascript">
            function ShowPopupMsgCall() {
            var modpop = $find("behCallMepop");
            if (!modpop) { return; }
            modpop.show();
            return false;
        }
        function HidePopupMsgCall() {
            var modpop = $find("behCallMepop");

            if (!modpop) { return; }
            modpop.hide();
            return false;
        }
        /* <![CDATA[ */
        var google_conversion_id = 1013678288;
        var google_custom_params = window.google_tag_params;
        var google_remarketing_only = true;
        /* ]]> */
    </script>

    <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
    </script>

    <noscript>
        <div style="display: inline;">
            <img height="1" width="1" style="border-style: none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1013678288/?value=0&amp;guid=ON&amp;script=0" />
        </div>
    </noscript>
</asp:Content>
